package com.yixin.hospital.entity.dto.req.purchaseorder;

import com.yixin.hospital.entity.bo.PurchaseOrderDetail;
import com.yixin.hospital.entity.domain.PurchaseOrderOperation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("新增/编辑采购单请求体")
public class PurchaseOrderAddReqDTO {
    @ApiModelProperty(value = "主键id", example = "1")
    private Long id;
    @ApiModelProperty(value = "采购计划", example = "星链采购计划")
    private String plan;
    @ApiModelProperty(value = "采购类型", example = "集中")
    @NotBlank(message = "采购类型不能为空")
    private String type;
    @ApiModelProperty(value = "库id", example = "1")
    @NotNull(message = "库id不能为空")
    private Long applyDepository;
    @ApiModelProperty(value = "供货商", example = "供货商1")
    @NotNull(message = "供货商不能为空")
    private Long supplier;
    @ApiModelProperty(value = "状态(0-草稿 1-提交)", example = "0")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @ApiModelProperty(value = "采购药品列表")
    @NotNull(message = "采购药品列表不能为空")
    List<PurchaseOrderDetail> purchaseOrderDrugList;

    List<Long> auditUserIds;
}


